/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cf.controller;

import com.cf.dao.impl.TbTareaDao;
import com.cf.modelo.*;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 *
 * @author Soltecn2
 */
@Component("tbTareaController")
@Scope
@ManagedBean
public class TbTareaController implements Serializable{
    
    private TbTarea tarea;
    private List<TbTarea> listTarea;

    
    
    
    public TbTareaController(){
    
    tarea=new TbTarea();
    listTarea=new ArrayList<TbTarea>();
    
    }
    
    
    public TbTarea getTarea() {
        return tarea;
    }

    public void setTarea(TbTarea tarea) {
        this.tarea = tarea;
    }

    public List<TbTarea> getListTarea() {
        listTarea=TbTareaDao.listTarea(1);               
        return listTarea;
    }

    public void setListTarea(List<TbTarea> listTarea) {
        this.listTarea = listTarea;
    }
    public  Integer idSubCategoria;
    
    
    
    
    
    
    
}
